import CommonIcon from '_c/common-icon'
import { showTitle } from '@/libs/util'
export default {
  components: {
    CommonIcon
  },
  methods: {
    showTitle (item) {
      return item.name;
    },
    showChildren (item) {
      return item.children && (item.children.length > 0 && item.opened)
    },
    getNameOrHref (item, children0) {
      return (item.url && item.url.indexOf("http") != -1) ? `isTurnByHref_${item.url}` : (children0 ? item.children[0].alias : item.alias)
    }
  }
}
